﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using Utilities;

namespace Models.WebSite_HaiSheng
{
    [JsonIgnore("JobApplys")]
    public class Recruitment:EntityBase
    {
        [Display(Name="职位名称"),Required(ErrorMessage="请输入职位名称")]
        public string JobTitle { get; set; }

        [Display(Name = "招聘人数")]
        public string JobPositionCount { get; set; }

        [Display(Name = "年龄要求")]
        public string Age { get; set; }

        [Display(Name = "性别要求")]
        public string Gender { get; set; }

        [Display(Name = "户籍要求")]
        public string Location { get; set; }

        [Display(Name = "年限要求")]
        public string Years { get; set; }

        [Display(Name = "专业要求")]
        public string Profession { get; set; }

        [Display(Name = "薪金水平")]
        public string Salary { get; set; }

        [Display(Name = "工作地区")]
        public string WorkingPlace { get; set; }

        //[Display(Name = "")]
        //public string Position { get; set; }

        [Display(Name = "学历要求")]
        public string Education { get; set; }

        [Display(Name = "岗位职责"), Required(ErrorMessage = "请输入岗位职责")]
        public string Duty { get; set; }

        [Display(Name = "职位要求"), Required(ErrorMessage = "请输入任职要求")]
        public string JobDescription { get; set; }

        [Display(Name = "发布时间"), Required(ErrorMessage = "请输入发布时间")]
        [DisplayFormat(DataFormatString = "{0:yyyy/MM/dd}", ApplyFormatInEditMode = true)]
        public DateTime PublishDate { get; set; }

        public virtual List<JobApply> JobApplys { get; set; }
    }
}